<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/source/";  //应用的地址名
String addActionName = basePath+"CaseSourceApprove_dealApprove.action";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head> 
 <title>稽查案源处理审批表</title>
<script type="text/javascript">
<!--
           $(function(){
              
               $('#code').validatebox({
                   required:'true',
                   missingMessage:'请输入编号',
                   validType:'length[1,20]'
               });
             
	           //点击添加按钮操作
			   $('#addBtn').click(function(){
                  $('#addForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#addForm').form({
			        url:'<%=addActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data);
			        }
				});
	           $('#fileTr').css('display',$('#fileTd').html()!=''?"":"none");
			    $('#uploadFile').click(function(){
			    	if($('#uploadFile').css('color')=='gray')
			    		return;
			    	fileupload('fileId',null,'fileTd','approve',{param:{urlSplit:'&nbsp;'}},function(){
			    		$('#fileTr').css('display',$('#fileTd').html()!=''?"":"none");
			    	});
			    });
	            
           });
//-->
</script>
</head>
<style  type="text/css">
 .tb_add_th td input.lineText {border-bottom:1px solid #ccc; border-top:0px; border-left:0px; border-right:0px; background-color:transparent;}
</style>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<form id="addForm" method="post">
<s:hidden name="appr.vcId"/>
<s:hidden name="appr.caseId"/>
<s:hidden id="fileId" name="appr.fileId"/>
<table align="center" width="100%"  class="tb_add_th">
<tr><th align="left">编号</th><td><s:textfield  id="code" name="appr.code" style="width:100px;"/></td>
    <th align="left">案件来源</th><td><s:textfield  id="caseFrom" name="appr.caseFrom" style="width:100px;" readonly="true" /></td></tr>
<tr>
    <th align="left">案源编号</th><td><s:textfield  id="caseNum" name="appr.caseNum" style="width:100px;" readonly="true"/></td>
    <th align="left">受理时间</th><td><input type="text"  id="acceptedDate" name="appr.acceptedDate" value="<s:date name="appr.acceptedDate" format="yyyy-MM-dd"/>" style="width:100px;" class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/></td>
</tr>
<tr><th align="left">涉案企业</th><td colspan="3"><s:textfield  id="involvedEnterprice" name="appr.involvedEnterprice" style="width:200px;" readonly="true"/></td></tr>
<tr><th align="left">纳税人识别号</th><td colspan="3"><s:textfield  id="taxpayerNumber" name="appr.taxpayerNumber" style="width:200px;" readonly="true"/></td></tr>
<tr><th align="left" rowspan="2">基本情况</th><td colspan="3"><s:textarea  id="baseResult" name="appr.baseResult" rows="5" cols="50"/></td></tr>
<tr><td colspan="3" style="text-align:center;">经办人&nbsp;<s:textfield  id="handlePerson" name="appr.handlePerson" style="width:100px;" cssClass="lineText"/>
   日期&nbsp;<input type="text"  id="handleDate" name="appr.handleDate" value="<s:date name="appr.handleDate" format="yyyy-MM-dd"/>" style="width:100px;" class="Wdate lineText" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/></td></tr>

<tr><th align="left" rowspan="2">选案部门意见</th><td colspan="3"><s:textarea  id="deptAdvice" name="appr.deptAdvice" rows="5" cols="50"/></td></tr>
<tr><td colspan="3" style="text-align:center;">科长&nbsp;<s:textfield  id="deptLeader" name="appr.deptLeader" style="width:100px;" cssClass="lineText"/>
     日期&nbsp;<input type="text"  id="deptApprDate" name="appr.deptApprDate" value="<s:date name="appr.deptApprDate" format="yyyy-MM-dd"/>" style="width:100px;" class="Wdate lineText" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/>
</td></tr>

<tr><th align="left" rowspan="2">市局稽查局分<br/>管局领导意见</th><td colspan="3"><s:textarea  id="leaderAdvice" name="appr.leaderAdvice" rows="5" cols="70"/></td></tr>
<tr><td colspan="3" style="text-align:center;">审批人&nbsp;<s:textfield  id="leader" name="appr.leader" style="width:100px;" cssClass="lineText"/>
   日期&nbsp;<input type="text"  id="leaderApprDate" name="appr.leaderApprDate" value="<s:date name="appr.leaderApprDate" format="yyyy-MM-dd"/>" style="width:100px;" class="Wdate lineText" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/>
</td></tr>
<tr><th align="left" rowspan="2">市局稽查局<br/>局长意见</th><td colspan="3"><s:textarea  id="directorAdvice" name="appr.directorAdvice" rows="5" cols="50"/></td></tr>
<tr><td colspan="3" style="text-align:center;">局长&nbsp;<s:textfield  id="director" name="appr.director" style="width:100px;" cssClass="lineText"/>
       日期&nbsp;<input type="text" id="directorApprDate" name="appr.directorApprDate" value="<s:date name="appr.directorApprDate" format="yyyy-MM-dd"/>" style="width:100px;" class="Wdate lineText" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/>
</td></tr>
 <tr><th align="left">审批复印件：</th><td colspan=3><a id="uploadFile" href="javascript:void(0)">点击上传复印件</a></td></tr>
  <tr id="fileTr" colspan=4><td id="fileTd" colspan="4">
	  <s:property value="appr.fileHtml" escape="false"/>
	  </td>
  </tr>
</table>
</form>
</body>
</html>


